import '@/styles/common.scss'

import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from './router'
import { lazyPlugin } from '@/directives'
import  piniaPlug  from 'pinia-plugin-persistedstate'

// 引入全局组件插件
import { componentPlugin } from '@/components/index.js'

const app = createApp(App)
// 全局指令注册
const pinia=createPinia()

pinia.use(piniaPlug)

app.use(pinia)
app.use(router)
app.use(componentPlugin)

app.mount('#app')

// 全局指令注册
app.use(lazyPlugin)


